package cn.afei.cloud.feign;

import cn.afei.cloud.resp.ResultData;
import cn.afei.cloud.utils.result.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cloud-cms")
public interface CloudCmsFeignService {

    @GetMapping("/testa")
    String testa();
    //扣减账户余额
    @PostMapping("/account/decrease")
    ResultData decrease(@RequestParam("userId") Long userId, @RequestParam("money") Long money);

}
